<include file="Common:header" />


<form class="checkoutform form-horizontal" action="{:U($post_method)}" method="post">
            <div class="table_ container">
<input type="hidden" name="id" value="{$info.id}">
            <notempty name="ctime"><input class="form-control"  name="ctime" value="{$ctime}" type="hidden" ></notempty>

                <div class="setting_table">
                <div class="form-group">
                    <label class="col-sm-2 control-label">标题</label>
                    <div class="col-sm-10">
                        <input class="form-control" name="title" type="text" value="{$info.title}">
                    </div>
                </div>
                
                
                <input type="hidden" name="type" value="1">

                   <div class="form-group">
                        <label class="col-sm-2 control-label">优惠券类型</label>
                        <div class="col-sm-10">
                            <select class="form-control" onChange="typeChange(this.value);" name="type" id="type">
                                <option value="">请选择</option>
                                <option value="1" <eq name="info['type']" value="1">selected="selected"</eq>>网页领取类优惠券</option>
                                <option value="2" <eq name="info['type']" value="2">selected="selected"</eq>>商家发放类优惠券</option>
                                <option value="3" <eq name="info['type']" value="3">selected="selected"</eq>>关注赠送类优惠券</option>
                                
                               
                                
                            </select>
                        </div>
                    </div>

                    <!--<div class="form-group">
                        <label class="col-sm-2 control-label">活动介绍</label>
                        <div class="col-sm-10">
                        <html:editor id="editor" name="intro" type="UEDIT" style="height:400px; width:100%;">{$info.intro}</html:editor>
                            
                        </div>
                    </div>-->

                    <div class="form-group">
                        <label class="col-sm-2 control-label">活动图片</label>
                        <div class="col-sm-10">
                            <input name="cover" type="hidden" value="{$info.cover}" /><img onclick="showImgBox(this);" src="<notempty name="info['cover']">{:getThumbPath($info['cover'])}<else/>__PUBLIC__/Admin/images/defaultimg.png</notempty>" id="cover" height="40" />
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">活动结束图</label>
                        <div class="col-sm-10">
                            <input name="end_img" type="hidden" value="{$info.end_img}" /><img onclick="showImgBox(this);" src="<notempty name="info['end_img']">{:getThumbPath($info['end_img'])}<else/>__PUBLIC__/Admin/images/defaultimg.png</notempty>" id="end_img" height="40" />
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">活动开始日期</label>
                        <div class="col-sm-10">
                            <input class="form-control" type="text" onclick="WdatePicker();" name="start_time" id="start_time" value="{:date('Y-m-d',$info['start_time'])}" />
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">活动结束日期</label>
                        <div class="col-sm-10">
                            <input class="form-control" type="text" onclick="WdatePicker();" name="end_time" id="end_time" value="{:date('Y-m-d',$info['end_time'])}" />
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">活动结束提示语</label>
                        <div class="col-sm-10">
                            <textarea class="form-control" name="end_tips" class="" cols="50" rows="6" id="end_tips">{$info.end_tips}</textarea>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">优惠券数量</label>
                        <div class="col-sm-10">
                            <input class="form-control" datatype="*"  name="num" value="{$info.num}" type="text">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">每人可领取数</label>
                        <div class="col-sm-10">
                            <input class="form-control" datatype="*"  name="max_num" value="{$info.max_num}" type="text">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">买满该金额可用</label>
                        <div class="col-sm-10">
                            <input class="form-control" datatype="*"  name="full" value="{$info.full}" type="text">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">折扣金额</label>
                        <div class="col-sm-10">
                            <input class="form-control" datatype="*"  name="discount" value="{$info.discount}" type="text">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">优惠券与活动同时结束</label>
                        <div class="col-sm-10">
                            <label class="checkbox-inline"> <input name="same" type="radio" id="is_nav_8" value="1" <eq name="info['same']" value="1">checked="checked"</eq> />
                                是</label>
                            <label class="checkbox-inline">  <input name="same" type="radio" id="is_nav_9" value="0" <eq name="info['same']" value="0">checked="checked"</eq> />
                                否</label>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">优惠券有效期(x天)</label>
                        <div class="col-sm-10">
                            <input class="form-control" name="sn_expires" type="text" value="{$info.sn_expires}">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">活动状态</label>
                        <div class="col-sm-10">
                            <label class="checkbox-inline"> <input name="status" type="radio" id="is_nav_8" value="1" <eq name="info['status']" value="1">checked="checked"</eq> />
                                开启</label>
                            <label class="checkbox-inline">  <input name="status" type="radio" id="is_nav_9" value="0" <eq name="info['status']" value="0">checked="checked"</eq> />
                                关闭</label>
                        </div>
                    </div>
<include file="Common:footer" />